const bottomlist = {
  namespaced: true,
  state() {
    return {
      bottomlist: {
        list: [],
        sheet: false,
        id: 0,
        type: "", //默认为诗集，歌单为 值为gedan
        typeList: {
          gedan: "gedan",
          shiji: "shiji",
        },
      },
    };
  },
  getters: {
    bottomlist: (state) => {
      return state.bottomlist;
    },
  },
  mutations: {
    //控制底部列表显示和隐藏
    setSheet: (state, val) => {
      state.bottomlist.sheet = val;
    },
    // 设置当前列表的ID
    setId: (state, val) => {
      state.bottomlist.id = val;
    },
    //设置底部列表的类型 诗集的值是 shiji 歌单的值是 gedan
    setType: (state, val) => {
      state.bottomlist.type = val;
    },
  },
  actions: {},
};

export default bottomlist;
